package jpa.entitys.promis.common;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;

import jpa.entitys.common.CommonEntity;


/**
 * The persistent class for the UM_CONVERSION database table.
 * 
 */
@Entity
@Table(name="UM_CONVERSION")
@NamedQueries({
    @NamedQuery(name = "UmConversion.findAll", query = " SELECT c FROM UmConversion c "),
    @NamedQuery(name = "UmConversion.findById", query = " SELECT c FROM UmConversion c WHERE c.id = :Id ")
})
public class UmConversion extends CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private UmConversionPK id;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="DENOMINATOR_CONVERSION", precision=22)
	private BigDecimal denominatorConversion;

	@Column(length=300)
	private String description;

	@Column(name="MAX_MIN_FLAG", length=1)
	private String maxMinFlag;

	@Column(name="NUMERATOR_CONVERSION", precision=22)
	private BigDecimal numeratorConversion;

	@Column(name="SYNC_CREATEDBY", length=100)
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY", length=100)
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO", length=100)
	private String syncExternalRefNo;

	@Column(name="SYNC_ISSYNC", length=1)
	private String syncIssync;

	@Column(name="SYNC_UPDATEDBY", length=100)
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;
    
    @Column(name="CREATED_BY")
	private String createdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;
    
    @Column(name="LAST_UPD_BY")
	private String lastUpdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;
    

    /**
	 * @return the createdBy
	 */
	public String getCreatedBy() {
		return createdBy;
	}

	/**
	 * @param createdBy the createdBy to set
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * @return the createdOn
	 */
	public Date getCreatedOn() {
		return createdOn;
	}

	/**
	 * @param createdOn the createdOn to set
	 */
	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	/**
	 * @return the lastUpdBy
	 */
	public String getLastUpdBy() {
		return lastUpdBy;
	}

	/**
	 * @param lastUpdBy the lastUpdBy to set
	 */
	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	/**
	 * @return the lastUpdOn
	 */
	public Date getLastUpdOn() {
		return lastUpdOn;
	}

	/**
	 * @param lastUpdOn the lastUpdOn to set
	 */
	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public UmConversion() {
    }

	public UmConversionPK getId() {
		return this.id;
	}

	public void setId(UmConversionPK id) {
		this.id = id;
	}
	
	public BigDecimal getDenominatorConversion() {
		return this.denominatorConversion;
	}

	public void setDenominatorConversion(BigDecimal denominatorConversion) {
		this.denominatorConversion = denominatorConversion;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getMaxMinFlag() {
		return this.maxMinFlag;
	}

	public void setMaxMinFlag(String maxMinFlag) {
		this.maxMinFlag = maxMinFlag;
	}

	public BigDecimal getNumeratorConversion() {
		return this.numeratorConversion;
	}

	public void setNumeratorConversion(BigDecimal numeratorConversion) {
		this.numeratorConversion = numeratorConversion;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

}